package regax;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Administrator on 2019/10/26.
 */
public class RG
{
    public static void main(String[] args)
    {
        String l = "19-1-25 19-1-25 上午10:01:22";
        Pattern pt = Pattern.compile("\\d{2,}-\\d+-\\d+");
        Matcher pa = pt.matcher(l);
        if(pa.find()){
            System.out.println(pa.group(0));
        }
    }
}
